package com.mmlc.businessutils;

import com.mmlc.meimei.lichengkongjian.been.AllOrderBean;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/8/12 0012.
 */
public class CreateVirtualData {
    public static List<AllOrderBean> getAllOrderData() {
        ArrayList<AllOrderBean> list;
        list = new ArrayList<AllOrderBean>();
        for (int i = 1; i < 20; i++) {
            AllOrderBean bean = new AllOrderBean();
            bean.photoUrl = "http://p0.so.qhmsg.com/bdr/_240_/t012ab623a1f5527d3a.jpg";
            bean.orderNumber = "123423542545245";
            bean.shopInfo = "商品不措商品不措商品不措商品不措商品不措商品不措商品不措商品不措";
            bean.shopColor = "深色";
            bean.shopPrice = "40";
            bean.shopCount = 2 + "";
            bean.orderStatus = "未付款";
            bean.allShopCount = "120";
            bean.type = 2;
            ArrayList<AllOrderBean> list2;
            list2 = new ArrayList<AllOrderBean>();

            int k = -1;
            if (i % 2 == 0) {
                k = 3;
            } else {
                k = 2;
            }
            for (int j = 0; j < k; j++) {
                AllOrderBean bean2 = new AllOrderBean();
                bean2.photoUrl = "http://p0.so.qhmsg.com/bdr/_240_/t012ab623a1f5527d3a.jpg";
                bean2.orderNumber = "123423542545245";
                bean2.shopInfo = "商品不措商品不措商品不措商品不措商品不措商品不措商品不措商品不措";
                bean2.shopColor = "深色";
                bean2.shopPrice = "40";
                bean2.shopCount = 2 + "";
                bean2 = bean2.addPrefix();
                list2.add(bean2);
            }
            bean.orderList = list2;

            ArrayList<Integer> integers = new ArrayList<>();
            integers.add(1);
            integers.add(2);
            bean.orderButtonType = integers;

            list.add(bean);
        }
        return list;
    }
}
